--编写者：alt
--功能介绍：玩家不会惊动鸟
--使用方法：直接粘贴到模组环境 修改xxxxxxxxxxxxx为人物tag

--她不会惊动鸟
local oldFindEntity = GLOBAL.FindEntity
function GLOBAL.FindEntity(inst, radius, fn, musttags, canttags, mustoneoftags, ...)
    if inst and inst:HasTag("bird")
        and type(canttags) == "table" and not table.contains(canttags, "xxxxxxxxxxxxx") then
        table.insert(canttags, "xxxxxxxxxxxxx")
        GLOBAL.FindEntity = oldFindEntity
    end
    return oldFindEntity(inst, radius, fn, musttags, canttags, mustoneoftags, ...)
end
